import Basic from '@/components/Basic' // 登录后第一个页面，包括头部导航，中间为router-view，底部导航
import HomePage from '@/views/HomePage' // 首页
import Message from '@/views/Message' // 消息
import Persional from '@/views/Persional' // 个人中心
import Bathe from '@/views/from_home/Bathe' // 洗澡
import Login from '@/views/Login' // 登录
import RegisterFirst from '@/views/RegisterFirst' // 注册第一步
import RegisterSecond from '@/views/RegisterSecond' // 注册第二步
import QRCode from '@/views/from_home/QRCode' // 付款码
import Guard from '@/views/from_home/Guard' // 门禁
import CardPackage from '@/views/from_home/CardPackage' // 卡包
import Recharge from '@/views/from_wallet/Recharge' // 充值
import Wallet from '@/views/from_home/Wallet' // 钱包
import ChangePasswordFirst from '@/views/from_persional/ChangePasswordFirst' // 修改密码第一步
import ChangePasswordSecond from '@/views/from_persional/ChangePasswordSecond' // 修改密码第二步
import MessagePayment from '@/views/from_message/MessagePayment' // 支付消息详情
import MessageCoupon from '@/views/from_message/MessageCoupon'
const routes = [
    {
        path: '/',
        name: 'Basic',
        component: Basic,
        redirect: '/login',
        children: [
            {
                path: 'home', // 首页
                name: 'home',
                component: HomePage
            },
            {
                path: 'message', // 消息
                name: 'message',
                component: Message
            },
            {
                path: 'persional', // 个人中心
                name: 'persional',
                component: Persional
            }
        ]
    },
    {
        path: '/bathe', // 洗澡
        name: 'bathe',
        component: Bathe
    },
    {
        path: '/qrcode', // 付款码
        name: 'qrcode',
        component: QRCode
    },
    {
        path: '/cardPackage', // 卡包
        name: 'cardPackage',
        component: CardPackage
    },
    {
        path: '/wallet', // 钱包
        name: 'wallet',
        component: Wallet
    },
    {
        path: '/guard', // 门禁
        name: 'guard',
        component: Guard
    },
    {
        path: '/registerFirst',
        name: 'registerFirst',
        component: RegisterFirst
    },
    {
        path: '/registerSecond', // 注册第二步页面
        name: 'registerSecond',
        component: RegisterSecond
    },
    {
        path: '/login', // 登录
        name: 'login',
        component: Login
    },
    {
        path: '/recharge', // 充值
        name: 'recharge',
        component: Recharge
    },
    {
        path: '/changePasswordFirst', // 修改密码第一步
        name: 'changePasswordFirst',
        component: ChangePasswordFirst
    },
    {
        path: '/changePasswordSecond', // 修改密码第二部
        name: 'changePasswordSecond',
        component: ChangePasswordSecond
    },
    {
        path: '/messagePayment', // 支付消息详情
        name: 'messagePayment',
        component: MessagePayment,
        props: true
    },
    {
        path: '/messageCoupon', // 优惠消息详情
        name: 'messageCoupon',
        component: MessageCoupon,
        props: true
    }
]

export default routes
